package com.billdowney.entity.user;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.billdowney.entity.base.BaseEntityIdByUUIDHex;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户基础信息
 * 
 * @author 超级小富翁 - BillDowney
 * @data 2017年8月27日 下午7:13:31
 */
@Entity
@Table(name = "user_info")
@ApiModel(description = "用户基础信息")
public class UserInfo extends BaseEntityIdByUUIDHex {

	private static final long serialVersionUID = 6884123621697301176L;
	@ApiModelProperty(value = "用户昵称")
	@Column(length = 30, unique = true)
	private String nickname;

	@ApiModelProperty(value = "用户头像", notes = "该值一般为图片的相对路径，特殊情况可为绝对网络路径")
	@Column(length = 500)
	private String headimg;

	@ApiModelProperty(value = "签名")
	@Column(length = 100)
	private String signature;

	@ApiModelProperty(value = "用户简介")
	@Column(length = 100)
	private String info;

	@ApiModelProperty(value = "性别")
	@Column(length = 2)
	private String sex;

	@ApiModelProperty(value = "生日")
	private Date birthday;

	@ApiModelProperty(value = "职业")
	@Column(length = 30)
	private String job;

	@ApiModelProperty(value = "地址")
	@Column(length = 100)
	private String addr;

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getHeadimg() {
		return headimg;
	}

	public void setHeadimg(String headimg) {
		this.headimg = headimg;
	}

	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

}
